import request from '@/utils/request.js'

// 查询纹样列表
export const getPatternList = (data) => {
  return request.post('/pattern/getPatternList', data)
}

// 删除纹样（支持批量）
export const delPattern = (data) => {
  return request.post('/pattern/delPattern', data)
}

// 新增纹样
export const savePattern = (data) => {
  return request.post('/pattern/savePattern', data)
}

// 根据 ID 查询纹样详情
export const getPatternById = (id) => {
  return request.get('/pattern/getPatternById', {
    params: { id }
  })
}

// 修改纹样
export const updatePattern = (data) => {
  return request.post('/pattern/updatePattern', data)
}
